import { F } from '../utils/http'
const { GET, POST } = F('member/')
class UserApi {
  constructor() {}
  login = ({ name, pass }) => POST('login', { name, pass })
  getInfo = () => GET('getinfo')
  updatePwd = (req) => POST('updatepwd', req)
  names = () => GET('names')
}
const api = new UserApi()
export default api
